package com.ygsoft.tianlu_mall.service;

import com.ygsoft.tianlu_mall.pojo.vo.req.AddEvaluationReqVO;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

public interface OrderService {
    void addOneGoodsToOrder(int user_id, int goods_id);

    void addGoodsToOrderByShopId(int user_id, int shop_id, List<Integer> goods_idList, double total_money);

    int getOrderId();

    HashMap<String, Object> getOrderGoodsInfo(int user_id, int order_id);


    BigDecimal getUserRestMoney(int user_id);

    void updateUserMoney(int user_id, BigDecimal total_money);

    void updateOrder2DetailStatus(HashMap<String,Object> map);

    int getShopUserid(int order_id);

    void updateShopUserMoney(int shop_userid,BigDecimal money);

    List<HashMap<String, Object>> getGoodsIdByOrderId(int order_id);

    BigDecimal getEveryOrderMoney(int order_id);

    HashMap<String, Object> getGoodsFile(int user_id, List<Integer> order_idList);

    List<HashMap<String,Object>> getAllOrderInfo(int user_id);

    void deleteOrderInfo(int user_id, int order_id);

    void addEvaluation(AddEvaluationReqVO vo);


    void updateOrderEndTime(HashMap<String, Object> closeMap);
}
